﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using Microsoft.VisualStudio.TestTools.UnitTesting;

//using Pibby.Core.Rss;

//namespace Pibby.Core.Tests
//{
//    [TestClass]
//    public class PublicationDateTests
//    {
//        [TestMethod]
//        public void GMTDateIsParsed()
//        {
//            string gmtDate = "26 Jun 2009 20:02:36 GMT";

//            PublicationDate d = new PublicationDate(gmtDate);

//            Assert.AreEqual(2009, d.Date.Year, "Year not correct");
//            Assert.AreEqual(6, d.Date.Month, "Month not correct");
//            Assert.AreEqual(26, d.Date.Day, "Day not correct");
//        }

//        [TestMethod]
//        public void PositiveOffsetIsParsed()
//        {
//            string offsetDate = "Sun, 14 Jun 2009 17:02:12 +0200";

//            PublicationDate d = new PublicationDate(offsetDate);

//            Assert.AreEqual(2009, d.Date.Year, "Year not correct");
//            Assert.AreEqual(6, d.Date.Month, "Month not correct");
//            Assert.AreEqual(14, d.Date.Day, "Day not correct");
//        }

//        [TestMethod]
//        public void ZeroOffsetIsParsed()
//        {
//            string offsetDate = "Tue, 24 Feb 2009 01:40:40 +0000";

//            PublicationDate d = new PublicationDate(offsetDate);

//            Assert.AreEqual(2009, d.Date.Year, "Year not correct");
//            Assert.AreEqual(2, d.Date.Month, "Month not correct");
//            Assert.AreEqual(24, d.Date.Day, "Day not correct");
//        }

//        [TestMethod]
//        public void NegativeOffsetIsParsed()
//        {
//            string offsetDate = "Fri, 26 Jun 2009 16:47:03 -0400";

//            PublicationDate d = new PublicationDate(offsetDate);

//            Assert.AreEqual(2009, d.Date.Year, "Year not correct");
//            Assert.AreEqual(6, d.Date.Month, "Month not correct");
//            Assert.AreEqual(26, d.Date.Day, "Day not correct");
//        }

//        [TestMethod]
//        public void EDTDateIsParsed()
//        {
//            string edtDate = "Tue, 14 Apr 2009 16:50:08 EDT";

//            PublicationDate d = new PublicationDate(edtDate);

//            Assert.AreEqual(2009, d.Date.Year, "Year not correct");
//            Assert.AreEqual(4, d.Date.Month, "Month not correct");
//            Assert.AreEqual(14, d.Date.Day, "Day not correct");
//        }

//        [TestMethod]
//        public void ESTDateIsParsed()
//        {
//            string estDate = "Thu, 10 Jul 2008 16:00:00 EST";

//            PublicationDate d = new PublicationDate(estDate);

//            Assert.AreEqual(2008, d.Date.Year, "Year not correct");
//            Assert.AreEqual(7, d.Date.Month, "Month not correct");
//            Assert.AreEqual(10, d.Date.Day, "Day not correct");
//        }

//    }
//}
